using GameAnalyticsSDK;
using UnityEngine;

public class AnalyticsManager : MonoBehaviour
{
	private void Awake()
	{
		VoodooServiceLocator.Analytics = this;
        GameAnalytics.Initialize();

    }

	public void GameStart()
	{
		VoodooSauce.OnGameStarted();
	}

	public void GameEnd(int score)
	{
		VoodooSauce.OnGameFinished(score);
	}

	public void LogGameModePlayed(string mode)
	{
		GameAnalytics.NewDesignEvent($"Mode:{mode}", 1f);
	}

	public void LogSkinUsed(int index)
	{
		GameAnalytics.NewDesignEvent($"Skin:{index}", 1f);
	}

	public void LogBuySkin(int index)
	{
		GameAnalytics.NewDesignEvent($"Purchase:{index}", 1f);
	}
}
